<script setup>
	//其余三个的文件路径
	import {
		getStorage
	} from "@/utils/localStorage.js";
	import MessageView from "@/views/message/MessageView.vue";
	import MmessageView from "../message/MmessageView.vue";

	// 根据登录信息判断用户身份
	let userData = JSON.parse(getStorage("userInfo"));
	console.log('userData', userData)
	console.log('userDataRole')
	const userRole = userData.user.role; // 假设从后端获取的用户角色信息
	const isManager = userRole === '管理员';
</script>
<template>
	<div>
		<template v-if="isManager">
			<MmessageView />
		</template>
		<template v-else>
			<MessageView />
		</template>
	</div>
</template>

<style scoped>

</style>